package top.dark.design.patterns.factory.factorymethod;

/**
 * Author: Darkn
 * description:
 * Create Time: 2021/4/24 21:33
 */
public class Client {
    public static void main(String[] args) {
        String location = "BJ";
        if (location.equals("BJ")) {
            new BJOrderPizza().orderPizza();
        } else {
            new LDOrderPizza().orderPizza();
        }
    }
}
